package com.mt.roll.process.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: liguanghao
 * @Date: 2021/4/8 18:57
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "工序设备点参数数组", description = "用于新增和更新工序设备点信息")
public class ProcessFlowSequenceEquipmentParam {
    /**
     * 工艺ID
     */
    @ApiModelProperty(value = "工艺ID", required = true, example = "1")
    @NotNull(message = "工艺ID不能为空")
    private Long processFlowId;
    /**
     * 工序ID
     */
    @ApiModelProperty(value = "工序ID", required = true, example = "1")
    private Long workSequenceId;
    /**
     * 工艺设备点数组
     */
    @ApiModelProperty(value = "工艺设备点数组", required = true, example = "1")
    private List<ProcessFlowEquipmentParam> processFlowEquipmentParams;
}
